package cn.school.thoughtworks.section3;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class PracticeB {
    Map<String,Integer> createUpdatedCollection(Map<String,Integer> collectionA, Map<String,List<String>> object) {
        //实现练习要求，并改写该行代码。
        List<List<String>> list2=new ArrayList(object.values());
        for(List<String> list3:list2){
            for(String s:list3){
                Integer count= collectionA.get(s);
                count= count-count/3;
                collectionA.put(s,count);
            }
        }
        return collectionA;
    }
}
